package com.lagou.provider.server.impl;

import com.lagou.service.MonitorService;
import lombok.extern.log4j.Log4j;
import org.apache.dubbo.config.annotation.Service;

import java.util.Random;

/**
 * @author 陶肖寅
 * @version V1.0
 * @Package com.lagou.provider.server.impl
 * @email fromlx@126.com
 * @date 2020-04-17 00:51
 * @Copyright © 2020-2021 城云科技(中国)有限公司
 */
@Service
@Log4j
public class MonitorServiceImpl implements MonitorService {
    @Override
    public void methodA() throws Exception{
        //获取随机数
        int random = new Random().nextInt(100);
        Thread.sleep(random);
        log.info("methodA:"+random);
    }

    @Override
    public void methodB() throws Exception{
        //获取随机数
        int random = new Random().nextInt(100);
        Thread.sleep(random);
        log.info("methodB:"+random);
    }

    @Override
    public void methodC() throws Exception {
        //获取随机数
        int random = new Random().nextInt(100);
        Thread.sleep(random);
        log.info("methodC:"+random);
    }
}
